package com.wxmblog.photo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.wxmblog.base.common.entity.BaseEntity;
import com.wxmblog.base.common.handler.BaseStringListTypeHandler;
import lombok.Data;

import java.util.List;


/**
 * 备注
 *
 * @author wanglei
 * @email 378526425@qq.com
 * @date 2023-06-20 15:24:40
 */
@Data
@TableName(value = "product", autoResultMap = true)
public class ProductEntity extends BaseEntity {

    /**
     * 标题
     */
    @TableField("title")
    private String title;
    /**
     * 文件地址
     */
    @TableField("file")
    private String file;
    /**
     * 分类
     */
    @TableField("category_id")
    private Integer categoryId;
    /**
     * 标签
     */
    @TableField(value = "label",typeHandler = BaseStringListTypeHandler.class)
    private List<String> label;

    @TableField("sort")
    private Integer sort;

}
